package org.brisling.base.domain;

import java.util.ArrayList;
import java.util.List;
/**
 * 
 * 用于Bootstrap bs_grid 数据集封装javabean对象，
 * bs_grid可直接load加载封装后的数据集
 * @author : jackson wang
 * @Date   : 2016年5月13日 下午15:47:07
 * @version: 1.0
 * 
 */
public class BSListDomain<T> {
	
	private String state;
	
	private String msg;
	private Long total_rows;
	
	private List<T> page_data; 
	
	public BSListDomain(){
		total_rows = 0l;
		page_data = new ArrayList<T>();
		state = "success";
	}
	
	public BSListDomain(String err){
		total_rows = 0l;
		page_data = new ArrayList<T>();
		state = "error";
	}

	


	public Long getTotal_rows() {
		return total_rows;
	}

	public void setTotal_rows(Long total_rows) {
		this.total_rows = total_rows;
	}

	public List<T> getPage_data() {
		return page_data;
	}

	public void setPage_data(List<T> page_data) {
		this.page_data = page_data;
	}

	public String getState() {
		return state;
	}


	public void setState(String state) {
		this.state = state;
	}


	public String getMsg() {
		return msg;
	}


	public void setMsg(String msg) {
		this.msg = msg;
	};
	
	

}
